package com.client.model.pojo.creditcard;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName credit_card
 */
@TableName(value ="credit_card")
@Data
public class CreditCard implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 信用卡号
     */
    @TableField(value = "card_num")
    private String cardNum;

    /**
     * 可借款金额
     */
    @TableField(value = "all_count")
    private BigDecimal allCount;

    /**
     * 透支金额
     */
    @TableField(value = "borrow_count")
    private BigDecimal borrowCount;

    /**
     * 还款日期（默认一号，注意节假日）
     */
    @TableField(value = "borrow_date")
    private Date borrowDate;

    /**
     * 所属用户
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 冗余字段
     */
    @TableField(value = "remark")
    private Integer remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
